package com.tao.clients;

import com.tao.param.PageParam;
import com.tao.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author 86130
 */
@FeignClient("order-service")
public interface OrderClient {
    /**
     * 检查订单中是否有商品
     * @param productId
     * @return
     */
    @PostMapping("order/remove/check")
    R check(@RequestBody Integer productId);

    /**
     * 后台管理显示订单信息
     * @param pageParam
     * @return
     */
    @PostMapping("order/admin/list")
    R list(@RequestBody PageParam pageParam);
}
